package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.KfdbBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface KfdbService extends BaseService<KfdbBean> {

	KfdbBean getKfdbBeanById(String id) throws Exception;
	
	void removeKfdbBeanById(String id) throws Exception;
	
	void removeKfdbBeanByIds(String ids) throws Exception;
	
	KfdbBean saveKfdbBean(KfdbBean crm) throws Exception;
	
	KfdbBean updateKfdbBean(KfdbBean crm) throws Exception;
	
	Page<KfdbBean>  findKfdbBeanByCond(KfdbBean bean,
			Page<KfdbBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveKfdbBeanExt(String sql) throws Exception;

	String findKfdbBeanExtCreate(String tableName) throws Exception;

	String findKfdbBeanExtEdit(String tableName, String id)
			throws Exception;

	String findKfdbBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasKfdbBeanExtData(String tableName, String id)
			throws Exception;
}